home *** CD-ROM | disk | FTP | other *** search
/ Geek Games #12 / GEGA012.iso / Jogos de Azar / 1721-apuesten.swf / scripts / C_DicesDisplayCLASS.as < prev    next >
Text File  |  2006-01-17  |  656b  |  25 lines

  1. _global.C_DicesDisplayCLASS = function()
  2. {
  3.    this.init();
  4. };
  5. C_DicesDisplayCLASS.prototype = new MovieClip();
  6. C_DicesDisplayCLASS.prototype.init = function()
  7. {
  8.    this.setDices(random(6) + 1,random(6) + 1);
  9. };
  10. C_DicesDisplayCLASS.prototype.lock = function()
  11. {
  12.    this._brightness = -50;
  13. };
  14. C_DicesDisplayCLASS.prototype.unlock = function()
  15. {
  16.    this._brightness = 0;
  17. };
  18. C_DicesDisplayCLASS.prototype.setDices = function(first, second)
  19. {
  20.    this.dice1_mc.gotoAndStop(first);
  21.    this.dice2_mc.gotoAndStop(second);
  22. };
  23. ASSetPropFlags(_global,"C_DicesDisplayCLASS",131);
  24. Object.registerClass("C_DicesDisplayCLASS",C_DicesDisplayCLASS);
  25.